package org.muyun.config;

import lombok.val;
import org.muyun.bean.Car;
import org.muyun.bean.Pet;
import org.muyun.bean.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {

    @Bean
    public Car carService(){
        val car = new Car();
        car.setId(77);
        car.setName("柒柒");
        return car;
    }

    @Bean
    public Pet petService(){
        return new Pet();
    }

    @Bean
    public User userService(){
        return new User();
    }
}
